package cn.org.service;

import java.util.List;

import cn.org.domain.Org;
import cn.org.domain.Person;
import cn.org.dto.TreeDto;

public interface IOrgService {
	int deleteByPrimaryKey(Integer id);

    int insert(Org record);

    int insertSelective(Org record);

    Org selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Org record);

    int updateByPrimaryKey(Org record);
    
    List<Org> getAllChildOrg(Org org);
    
    List<TreeDto> listChildTreeByOrg(Org org);
    
    List<Integer> listChildIdsByOrg(int id);
   List<TreeDto> listChildTreeByOrgs(List<Integer> ids);
   
   List<Org> getOrgByPerson(Person person);
   
   Org selectByName(String name);
}
